Filter hook 'pre_set_theme_mod_{$name}'
in WP Core File wp-includes/theme.php at line 1111
Description
Filters the theme modification, or 'theme_mod', value on save. The dynamic portion of the hook name, `$name`, refers to the key name of the modification array. For example, 'header_textcolor', 'header_image', and so on depending on the theme options.
Occurrences
Filename |
Line Number |
wp-includes/theme.php |
1111 |
Parameters
Type |
Name |
Description |
mixed |
$value |
The new value of the theme modification. |
mixed |
$old_value |
The current value of the theme modification. |
PHP Doc
/**
* Filters the theme modification, or 'theme_mod', value on save.
*
* The dynamic portion of the hook name, `$name`, refers to the key name
* of the modification array. For example, 'header_textcolor', 'header_image',
* and so on depending on the theme options.
*
* @since 3.9.0
*
* @param mixed $value The new value of the theme modification.
* @param mixed $old_value The current value of the theme modification.
*/